import useRequest from "@/hooks/useRequest";
const { request, post, get } = useRequest();


// 获取提现列表
export const getWithdrawalList = (data ?: any) => {
	return request({
		url: "currency/bank/withdrawal_list",
		method: "get",
		data,
	});
}


// 获取账单列表
export const getAccountList = (data ?: any) => {
	return request({
		url: "currency/member/account_list",
		method: "get",
		data,
	});
}
// 获取银行卡列表
export const getBankGetList = (data ?: any) => {
	return request({
		url: "currency/bank/get_list",
		method: "get",
		data,
	});
}

// 新增银行卡
export const addBank = (data ?: any) => {
	return request({
		url: "currency/bank/add",
		method: "post",
		data,
	});
}

// 充值
export const recharge = (data ?: any) => {
	return request({
		url: "currency/bank/recharge",
		method: "post",
		data,
	});
}

// 提现
export const withdrawal = (data ?: any) => {
	return request({
		url: "currency/bank/withdrawal",
		method: "post",
		data,
	});
}
// 获取银行列表
export const getBankTypeList = (data ?: any) => {
	return request({
		url: "currency/bank/get_type_list",
		method: "post",
		data,
	});
}